package com.it135.citytraffic.service.impl;

import com.it135.citytraffic.pojo.entity.RoadStatistic;
import com.it135.citytraffic.mapper.RoadStatisticMapper;
import com.it135.citytraffic.service.IRoadStatisticService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lh
 * @since 2024-07-10
 */
@Service
public class RoadStatisticServiceImpl extends ServiceImpl<RoadStatisticMapper, RoadStatistic> implements IRoadStatisticService {
 @Autowired
 private RoadStatisticMapper roadStatisticMapper;
    @Override
    public List<RoadStatistic> findAll() {
        return roadStatisticMapper.findAll();
    }
    @Override
    public List<RoadStatistic> findById(Long id) {
        return roadStatisticMapper.findById(id);
    }
}
